/* VARIABLES DE COLOR */
:root {
    --cafe: #8C4113;
    --naranja: #f49401;
    --negro: #1d1d1d;
    --blanco: #f2f2f2;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: 'Poppins', sans-serif; /* <--- Esta es la línea clave */
    background: var(--blanco); 
    color: var(--negro); 
    line-height: 2; 
    text-align: justify;
}

.whatsapp-btn {
    position: fixed;
    bottom: 40px;       /* Distancia desde abajo */
    right: 50px;        /* Distancia desde la derecha */
    width: 60px;        /* Tamaño del botón */
    height: 60px;
    background-color: #25d366; /* Color oficial de WhatsApp */
    border-radius: 50%; /* Lo hace circular */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2); /* Sombra para que resalte */
    z-index: 1000;      /* Para que siempre esté por encima de otros elementos */
    transition: transform 0.3s ease; /* Animación suave */
}
.whatsapp-btn img {
    width: 35px;        /* Tamaño del logo dentro del círculo */
    height: 35px;
}
/* Efecto al pasar el mouse */
.whatsapp-btn:hover {
    transform: scale(1.2); /* Se agranda un poco */
    background-color: #20ba5a;
}


/* Opcional: Para que los títulos resalten más */
h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 2%;
    color: #f49401;
    font-size: 300%;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }
.center { text-align: center; }
img { max-width: 100%; height: auto; }

/* HEADER & NAV */
header { background: var(--negro); position: sticky; top: 0; z-index: 1000; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px; }

.nav-menu { display: flex; list-style: none; }
.nav-menu li { margin-left: 30px; position: relative; }
.nav-menu a { text-decoration: none; color: var(--blanco); font-weight: 600; transition: 0.3s; }
.nav-menu a:hover { color: var(--naranja); font-size:105%; }

/* DROPDOWN SERVICIOS */
.dropdown-content {
    display: none; position: absolute; background: var(--naranja); text-align: left;
    min-width: 200px;border-radius: 9px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.229); list-style: none; padding: 10px 0;
}
.dropdown-content li { margin: 0;  }
.dropdown-content li:hover { color: var(--negro); }
.dropdown-content a { padding: 10px 20px; display: block; font-size: 14px; line-height: 1.2; }
.dropdown:hover .dropdown-content { display: block; font-size:small ; }

/* HOVER SOLO PARA LOS TEXTOS DEL DROPDOWN SERVICIOS */
.dropdown-content a:hover {
    color: var(--negro);
    font-size: 14px; /* evita que crezca como en el nav */
}

#menu-toggle{
    display: none;
}

.menu-icon{
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    cursor: pointer;
}

.menu-icon span{
    display: block;
    width: 100%;
    height: 3px;
    background: var(--blanco);
    border-radius: 3px;
}











/* SECCIÓN 1: IMAGEN B&N */
.img-effect-section { width: 100%; overflow: hidden; height: 100%; }




/* SECCIÓN 2: QUIÉNES SOMOS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nosotros-img img { border-radius: 16px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); }




/* SECCIÓN 3: FILOSOFÍA Y VALORES */

/* Contenedor principal para organizar las tarjetas */
.filosofia-imgs.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px;
}

/* Estilo aplicado a ambas tarjetas (Misión y Visión) */

.mision, .vision {
    border: 2px solid #f49401; /* Borde amarillo (puedes ajustar el tono) */
    border-radius: 16px;        /* Bordes redondeados */
    padding: 40px;
    background-color: #f2f2f2;
    transition: transform 0.3s ease; /* Efecto suave al pasar el mouse */
    
    /* Box Shadow: Horizontal, Vertical, Difuminado, Color */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}






.valores-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.valor-item {
    padding: 5px; 
    border-radius: 20px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    /* Transición suave para todos los cambios */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

.valor-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease; /* Transición extra para la imagen */
}

/* EFECTO HOVER Y CLICK (ACTIVE) */
.valor-item:hover, 
.valor-item:active {
    transform: scale(1.3); /* Crece un 15% */
    z-index: 10; /* Asegura que al crecer no quede debajo de otros */
}

/* Opcional: Si quieres que la imagen interna también se mueva un poco */
.valor-item:hover img {
    transform: scale(1.05);
}

/* SECCIÓN BANNER */

.banner-contacto {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    padding: 80px 20px;
    text-align: center;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4);
}

.content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
}

.banner-contacto h1 {
    color: #f49401;
    margin: 0 0 10px 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.banner-contacto p {
    color: white;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.5;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}


/* Contenedor de la imagen */
.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se queda atrás */
}

/* La magia para que la imagen actúe como background-size: cover */
.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    filter: brightness(0.4); /* Esto reemplaza el gradiente oscuro que tenías */
}

/* El contenido (texto) debe estar por encima de la imagen */
.content-overlay {
    position: relative;
    z-index: 2; /* Sube el texto por delante de la imagen */
}

.banner-contacto h1 { 
    color: #FF8000; /* Tu color naranja */
    margin: 0; 
    font-size: 2.5rem;
}







/* FOOTER */
footer { background: var(--negro); color: var(--blanco); padding: 50px 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1.5fr; gap: 60px; }
.footer-logo { max-width: 250px; align-content: center;}
.footer-center h3 { color: var(--naranja); margin: px 0 px; font-size: 16px;}
.footer-center p{text-align:left;}
.footer-right h3 { color: var(--naranja); margin: px 0 px; font-size: 16px; }
.footer-nav a { color: var(--blanco); text-decoration: none; margin: 0 5px; display:flex;transition: 0.2s;}
.footer-nav a:hover{ color: #f49401; font-size: medium;}
.footer-socials {
    margin-top: 20px;
    display: flex;          /* 🔥 clave */
    flex-direction: column; /* 🔥 pone el h3 arriba */
    align-items: flex-start;
}

.footer-socials h3 {
    margin-bottom: 15px;
}
.footer-social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: transparent;
    border: 2px solid #FF8000;
    border-radius: 8px;
    transition: 0.3s;
    text-decoration: none;
}
.footer-social-icons i {
    color: #ffffff;
    font-size: 1.5rem;
}
.footer-social-icons a:hover {
    background-color: #f49401;
    transform: translateY(-5px);
}
.footer-social-icons a:hover i {
    color: white;
}



/* SECCIÓN NUESTRO EQUIPO DE TRABAJO */

.equipo-section {
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
    padding-bottom: 200px;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 50px;
    justify-content: center;
}

.equipo-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding-right: 30px;
}

.equipo-item:nth-child(1),
.equipo-item:nth-child(2),
.equipo-item:nth-child(4),
.equipo-item:nth-child(5) {
    border-right: 1px solid #d9d9d9;
}

.equipo-foto {
    margin-bottom: 50px;
}

.equipo-foto img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.equipo-info {
    flex: 1;
    min-width: 0;
}

.equipo-info h2{
    color: var(--cafe);
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: left;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.equipo-cargo {
    color: #8C4113;
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: left;
}

.equipo-correo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--negro);
    font-size: 0.9rem;
    margin-bottom: 14px;
    line-height: 1.4;
    min-width: 0;
}


.equipo-correo span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.equipo-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: transparent;
    border: 2px solid var(--naranja);
    border-radius: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.equipo-linkedin i {
    color: var(--naranja);
    font-size: 1rem;
    transition: 0.3s;
}

.equipo-linkedin:hover {
    background-color: var(--naranja);
    transform: translateY(-4px);
}

.equipo-linkedin:hover i {
    color: white;
}

.valores-titulo {
    margin: 80px 0 45px 0;
}

.valores-titulo h1 {
    margin: 0;
    line-height: 2.15;
}





/* RESPONSIVE */

@media (max-width: 768px) { 
    

    body{
        text-align: center;
        line-height: 1.5;
    }
    p{
        text-align: justify;
    }
    
    .nosotros-texto p{
        text-align: justify;
        display: block;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    .container{
        width: 80%;
        margin: 0 auto;
        padding: 0;
    }

    .section-padding{
        padding: 40px 0;
    }

    .header-content{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .menu-icon{
        display: flex;
    }

    nav{
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 220px;
        background: var(--negro);
        border-radius: 10px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.25);
        padding: 10px 0;
        z-index: 1000;
    }
    .logo img{
        max-height: 60px;
        margin: 10px;
    }

    #menu-toggle:checked + .menu-icon + nav{
        display: block;
    }

    .nav-menu{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 0;
    }

    .nav-menu li{
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu a{
        display: block;
        padding: 12px 15px;
    }

    .dropdown-content{
        position: static;
        top: auto;
        display: none;
        margin-top: 0;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        background: rgba(244,148,1,0.15);
    }

    .dropdown:hover .dropdown-content .dropdown-content:active{
        display: block;
    }

    .grid-2,
    .grid-3,
    .footer-grid{
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    /* NOSOTROS */

    .nosotros-texto{
        margin: 0;
        text-align: center;
        order: 1;
    }

    .nosotros-texto h1,
    .nosotros-texto h2 {
        display: block;
        width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .nosotros-img{
        order: 2;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    .nosotros-img img{
        width: 100%;
        margin: 0 auto;
    }

    .footer-logo,
    .footer-center,
    .footer-right{
        margin: 0 auto;
        text-align: center;
    }

    .imagenes-hover{
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 20px;
    }

    .img-link,
    .imagenes-hover:hover .img-link,
    .imagenes-hover .img-link:hover{
        flex: none;
    }

    .img-box{
        height: 220px;
    }

    .footer-logo{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
        margin-bottom: 50px;
    }

    .footer-nav a{
        display: block;
        margin: 8px 0;
        text-align: center;
    }

    .footer-socials{
        display:contents;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
    }


    .footer-center p{text-align: center;}
    .footer-left{
        display:flex;
        justify-content:center;  /* centra horizontal */
        align-items:center;      /* centra vertical */
    }

    .footer-logo{
        display:flex;
        flex-direction:column;   /* una arriba de otra */
        justify-content:center;  /* centra verticalmente el contenido dentro */
        align-items:center;      /* centra horizontalmente las imágenes */
        gap:10px;
    }

    .footer-logo img{
        max-width:150px;
        height:auto;
        display:block;
    }



        /* TÍTULOS EN MÓVIL */
    h1 {
        font-size: 2.5rem;
        line-height: 1.15;
        margin-bottom: 20px;
        text-align: center;
        word-break: normal;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: 2rem;
        line-height: 3;
    }

    h3 {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    /* TÍTULO ESPECÍFICO DE VALORES EMPRESARIALES */
    .valores-titulo {
        margin: 35px auto 20px auto !important;
        padding: 0 10px;
    }

    .valores-titulo h1 {
        font-size: 2.1rem;
        line-height: 1.15;
        text-align: center;
        margin: 0;
    }

/* SECCIÓN 3: FILOSOFÍA Y VALORES - APILADO VERTICAL */

    .valores-grid {
        display: flex;             /* Cambiamos a Flexbox para mejor control vertical */
        flex-direction: column;    /* Alinea los elementos uno debajo de otro */
        align-items: center;       /* Los centra horizontalmente */
        gap: 30px;                 /* Espacio entre cada valor */
        margin-top: 30px;
        width: 100%;               /* Asegura que ocupe el ancho disponible */
    }

    .valor-item {
        width: 100%;               /* Cada item ocupa todo el ancho del contenedor */
        max-width: 350px;          /* Limitamos el ancho para que no se vea gigante la imagen */
        padding: 20px; 
        border-radius: 12px;
        display: flex; 
        align-items: center; 
        justify-content: center;
        /* Efecto de transición suave */
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        cursor: pointer;
    }

    .valor-item img {
        width: 100%;               /* La imagen se ajusta al contenedor de 350px */
        height: auto;
    }

    /* EFECTO AL PASAR EL MOUSE O DAR CLICK */
    .valor-item:hover, 
    .valor-item:active {
        transform: scale(1.17);     /* Se agranda */
    }

    .filosofia-imgs.grid-2 {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .mision, .vision {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Centrado vertical */
        align-items: center;     /* Centrado horizontal */
        min-height: 300px;       /* Altura mínima para que el centrado sea visible */
        text-align: center;
        padding: 40px;
    }

    /* Forzamos que los párrafos dentro de estas clases no hereden el 'justify' general */
    .mision p, .vision p {
        text-align: center;
        margin: 0;
    }

    .equipo-section{
        padding-bottom: 100px;
    }

    .equipo-titulo {
    margin: 20px auto 35px auto;
    padding: 0 10px;
    }

    .equipo-titulo h1 {
        font-size: 2.2rem;
        line-height: 1.1;
        text-align: center;
        margin: 0;
    }

    .equipo-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .equipo-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding-right: 0 !important;
        border-right: none !important;
    }

    .equipo-foto {
        margin-bottom: 0;
    }

    .equipo-foto img {
        width: 130px;
        height: 130px;
        margin: 0 auto;
        display: block;
    }

    .equipo-info {
        width: 100%;
        text-align: center;
    }

    .equipo-info h2 {
        font-size: 1.1rem;
        line-height: 1.25;
        text-align: center;
        margin-bottom: 8px;
        word-break: break-word;
    }

    .equipo-cargo {
        font-size: 0.95rem;
        line-height: 1.3;
        text-align: center;
        margin-bottom: 8px;
    }

    .equipo-correo {
        justify-content: center;
        text-align: center;
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 14px;
        padding: 0 8px;
    }

    .equipo-correo span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .equipo-linkedin {
        margin: 0 auto;
    }

}